#! /bin/sh
#
# $Id: pkg-deinstall 114 2006-09-19 12:31:11Z gslin $
#

ETC_CRONTAB="/etc/crontab"
SED="/usr/bin/sed"

if [ "$2" = "POST-DEINSTALL" ]; then
	echo -n "Cleaning up ${ETC_CRONTAB}..."
	if [ -f ${ETC_CRONTAB} ]; then
		${SED} -e "/# Begin periodicCron settings/,/# End periodicCron settings/d" -i "" ${ETC_CRONTAB}
	fi
	echo " Done."
fi
